#include"common.hpp"

int main()
{
    NamedPipe np;

    Shm shm(USER,PATH_NAME,PRO_ID);
    char* ptr = (char*)shm.Ptr();

    int index = 0;
    for(char c = 'A' ; c<= 'Z'; c++,index+=2)
    {
        sleep(1);
        ptr[index] = c;
        ptr[index+1] = c;
        ptr[index+2] = '\0';
        np.Awake();
        sleep(1);
    }

    return 0;
}